package com.wanma.springboot.service.impl;


import com.wanma.springboot.mapper.UserinfoMapper;
import com.wanma.springboot.pojo.Userinfo;
import com.wanma.springboot.service.UserinfoServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class UserinfoServicesImpl implements UserinfoServices {
    @Autowired
    private UserinfoMapper userinfoMapper;

    @Override
    public void insert(Userinfo userinfo) {
        userinfoMapper.insert(userinfo);
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void update(Userinfo object) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public Userinfo findById(Integer id) {
        return null;
    }

    @Override
    public List<Userinfo> findAll() {
        return null;
    }

    @Override
   public List<Userinfo> selectAllUser()
   {
       return userinfoMapper.selectAllUser();
   }
}
